<?php
namespace app\index\validate;
use think\Validate;

/**
 * 微信用户信息验证器
 * Created by PhpStorm.
 * User: tyll
 * Date: 2019/09/05
 * Time: 16:20
 */
class Visitor extends Validate{

    protected $rule = [
        'nickname' => 'require'
    ];

    protected $message = [
        'nickname.require' => '用户昵称必须填写'
    ];

    protected $scene = [
        'add'  => ['nickname']
    ];
}